package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.lang.reflect.Field;


// 涉及到微服务 需要添加特定注解 EnableDiscoveryClient
@SpringBootApplication
@EnableDiscoveryClient // nacos注册
@EnableFeignClients// 启用feign 这个注解只使用在调用端 被调用段可以不使用
@ComponentScan(basePackages = {"com.atguigu"})

public class EduApplication {

    public static void main(String[] args) {

        SpringApplication.run(EduApplication.class, args);
    }


}
